package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.domain.SErrorBook;
import com.zhentao.domain.dto.ErrorBookDto;
import com.zhentao.service.SErrorBookService;
import com.zhentao.mapper.SErrorBookMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author Lenovo
* @description 针对表【s_error_book】的数据库操作Service实现
* @createDate 2024-07-31 09:42:39
*/
@Service
public class SErrorBookServiceImpl extends ServiceImpl<SErrorBookMapper, SErrorBook>
    implements SErrorBookService{
    @Resource
    private SErrorBookMapper errorBookMapper;
    /**
     * 查询错题本列表
     * @param dto
     * @return
     */
    @Override
    public Page<SErrorBook> getErrorBookList(ErrorBookDto dto) {
        Page<SErrorBook> page = new Page<>(dto.getPageNum(),dto.getPageSize());
        Page<SErrorBook> page1 = errorBookMapper.getErrorBookList(page,dto);
        return page1;
    }
}




